﻿@using SunTzu.Utility;
@model form_referral_apply
@{
    ViewBag.Title = Model.Title;
    Layout = "~/Views/Shared/Class/_Layout.cshtml";
    List<int> industries = new List<int>();
    if(!string.IsNullOrEmpty(Model.Industry))
    {
        industries.AddRange(Model.Industry.Split(',').Select(c => c.ParseToInt()));
    }
    
    bool isWaiting = Model.Id > 0 && Model.State == 0;
    bool isApproved = Model.State == 1;
}
    <div class="registerForm registerFormInner">
    <form id="editForm" action="/ReferralApply/CreateReferralApply?id=@Model.Id" method="post">
        <div class="registerFormSubTitle">申请信息</div>
        <ul>
            <li class="formProp">单位名称：</li>
            <li class="formShortLine">
                @Model.Title
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">单位性质：</li>
            <li class="formShortLine">
                @Model.Type
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">法人代表：</li>
            <li class="formShortLine">
                @Model.LegalPerson
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">负责人：</li>
            <li class="formShortLine">
                @Model.MainPerson
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">推介会主题：</li>
            <li class="formShortLine">
                @Model.ReferralTopic
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">推介会内容：</li>
            <li class="formShortLine">
                @Model.ReferralContent
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">其他活动安排：</li>
            <li class="formShortLine">
                @Model.Activity
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">推介人：</li>
            <li class="formShortLine">
                @Model.ReferralPerson
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">推介人职务：</li>
            <li class="formShortLine">
                @Model.ReferralTitle
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">所属行业：</li>
            <li class="formShortLine" style="width:400px">
                
                @foreach (var industry in CacheHelper<code_industry>.GetAll().OrderBy(c => c.Order))
                {
                   @(industries.Contains(industry.Id) ? industry.Title + " | " : "")
                        
                }
                @Model.IndustryOtherName
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">企业邀请听众：</li>
            <li class="formShortLine">
                @Model.InvitePeopleCount
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">服务需求：</li>
            <li class="formShortLine">
                @Model.Requirement
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">单位地址：</li>
            <li class="formShortLine">
                @Model.Address
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">联系人：</li>
            <li class="formShortLine">
                @Model.Contacter
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">联系电话：</li>
            <li class="formShortLine">
                @Model.Tel
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">手机：</li>
            <li class="formShortLine">
                @Model.Mobile
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">传真：</li>
            <li class="formShortLine">
                @Model.Fax
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">Email：</li>
            <li class="formShortLine">
                @Model.Email
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">网址：</li>
            <li class="formShortLine">
                <a href="@Model.Url" style="color:#A4820B" target="_blank">@Model.Url</a>
            </li>
            <li class="clear"></li>
        </ul>
    </form>
    </div>
